package com.homedo.odin.solution.contract.mng;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.homedo.odin.solution.model.base.BaseRequest;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import javax.validation.constraints.NotNull;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * @author: liyi
 * @date: 2018/4/11 15:14
 * @Description:
 */
@ApiModel(description = "编辑基础数据")
@JsonIgnoreProperties(ignoreUnknown = true)
@Data
public class SolutionRankReq extends BaseRequest {

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("方案ID")
    @NotNull(message = "方案ID不能为空")
    private Long solutionId;


    @ApiModelProperty("排行类型")
    @Range(min = 1, max = 2, message = "排行类型只能 1 2")
    private Integer rankType;
    /**
     * 最近修改用户标识
     */
    @ApiModelProperty("修改人")
    @NotNull(message = "修改人不能为空")
    private Long modifiedBy;

    /**
     * 操作人
     */
    @ApiModelProperty("操作人")
    @NotNull(message = "操作人不能为空")
    private String operator;
}
